﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Geolocation;

namespace Smile.Mvvm.Service.Geolocation
{
    public class Coordinate : ICoordinate
    {
        // @Properties
        public double Latitude
        {
            get
            {
                return _latitude;
            }
            set
            {
                _latitude = value;
            }
        }

        public double Longitude
        {
            get
            {
                return _longitude;
            }
            set
            {
                _longitude = value;
            }
        }

        public double Accuracy
        {
            get
            {
                return _accuracy;
            }
            set
            {
                _accuracy = value;
            }
        }


        // @Public
        public Coordinate()
        {
        }

        public Coordinate(Geocoordinate coordinate)
        {
            Latitude = coordinate.Latitude;
            Longitude = coordinate.Longitude;
            Accuracy = coordinate.Accuracy;
        }

        // @Private
        double _latitude = 0;
        double _longitude = 0;
        double _accuracy = 0;
    }
}
